﻿namespace ExtensionMethods
{
    // static class for extension method
    public static class ProductExtensions
    {
        // extension method for Product class
        public static double GetDiscount(this Product product)
        {
            return product.Cost * product.DiscountPercentage / 100;
        }
        
        
    }
}